set more off

**Paper Analysis**

*Note: figures not created in this .do-file created with additional software. Information to create all figures is available here.
*Variable labels in dataset correspond to labels in the paper.

* Table 1 *

prais d.top1_cg_c l.top1_cg_c d.filpivdist_c l.filpivdist_c d.maxdist_c l.maxdist_c d.cpp_c l.cpp_c d.polarization_c l.polarization_c l.filpivdistXtop1_cg l.maxdistXtop1_cg l.cppXtop1_cg l.polarizationXtop1_cg
capture drop model1res
predict model1res, res
estimates store model1

prais d.top1_cg_c l.top1_cg_c d.filpivdist_c l.filpivdist_c d.maxdist_c l.maxdist_c d.cpp_c l.cpp_c d.polarization_c l.polarization_c l.filpivdistXtop1_cg l.maxdistXtop1_cg l.cppXtop1_cg l.polarizationXtop1_cg d.sendem l.sendem d.housedem l.housedem
capture drop model2res
predict model2res, res
estimates store model2

prais d.top1_cg_c l.top1_cg_c d.filpivdist_c l.filpivdist_c d.maxdist_c l.maxdist_c d.cpp_c l.cpp_c d.polarization_c l.polarization_c l.filpivdistXtop1_cg l.maxdistXtop1_cg l.cppXtop1_cg l.polarizationXtop1_cg d.capgtax l.capgtax d.topmarg l.topmarg d.fin_dereg l.fin_dereg d.fedrate l.fedrate
capture drop model3res
predict model3res, res
estimates store model3

prais d.top1_cg_c l.top1_cg_c d.filpivdist_c l.filpivdist_c d.maxdist_c l.maxdist_c d.cpp_c l.cpp_c d.polarization_c l.polarization_c l.filpivdistXtop1_cg l.maxdistXtop1_cg l.cppXtop1_cg l.polarizationXtop1_cg d.finprofits l.finprofits d.union l.union d.gdppc_05 l.gdppc_05
capture drop model4res
predict model4res, res
estimates store model4

prais d.top1_cg_c l.top1_cg_c d.filpivdist_c l.filpivdist_c l.cpp_c l.polarization_c l.filpivdistXtop1_cg l.cppXtop1_cg l.polarizationXtop1_cg
capture drop model5res
predict model5res, res
estimates store model5

estimates drop _all

** SI Analysis **

** Stationarity Tests **

dfuller top1_cg_cent
kpss top1_cg_cent

dfuller filpivdist_cent 
kpss filpivdist_cent 

dfuller maxdist_c 
kpss maxdist_c

dfuller cpp_cent 
kpss cpp_cent 

dfuller polarization_cent 
kpss polarization_cent 

dfuller sendem
kpss sendem

dfuller housedem
kpss housedem

dfuller capgtax
kpss capgtax

dfuller topmarg
kpss topmarg

dfuller fin_dereg
kpss fin_dereg

dfuller fedrate
kpss fedrate

dfuller finprofits
kpss finprofits

dfuller union 
kpss union 

dfuller gdppc_05 
kpss gdppc_05


*Residual Stationarity*

dfuller model1res, regress
kpss model1res

dfuller model2res, regress
kpss model2res

dfuller model3res, regress
kpss model3res

dfuller model4res, regress
kpss model4res

dfuller model5res, regress
kpss model5res


*Alternative Specifications Mentioned in Paper

prais d.top1_cg_c l.top1_cg_c d.filpivdist_c l.filpivdist_c d.maxdist_c l.maxdist_c d.cpp_c l.cpp_c d.polarization_c l.polarization_c l.filpivdistXtop1_cg l.maxdistXtop1_cg l.cppXtop1_cg l.polarizationXtop1_cg d.smedian l.smedian d.hmedian l.hmedian
estimates store model1

prais d.top1_cg_c l.top1_cg_c d.filpivdist_c l.filpivdist_c d.maxdist_c l.maxdist_c d.cpp_c l.cpp_c d.polarization_c l.polarization_c l.filpivdistXtop1_cg l.maxdistXtop1_cg l.cppXtop1_cg l.polarizationXtop1_cg d.dempres l.dempres
estimates store model2

regress d.top1_cg_c l.top1_cg_c d.filpivdist_c l.filpivdist_c d.maxdist_c l.maxdist_c d.cpp_c l.cpp_c d.polarization_c l.polarization_c l.filpivdistXtop1_cg l.maxdistXtop1_cg l.cppXtop1_cg l.polarizationXtop1_cg
estimates store model3

estimates drop _all

*Exploring Norms vs. Preference Distribution

prais d.top1_cg_c l.top1_cg_c d.filpivdist_c l.filpivdist_c d.maxdist_c l.maxdist_c d.cpp_c l.cpp_c d.polarization_c l.polarization_c l.filpivdistXtop1_cg l.maxdistXtop1_cg l.cppXtop1_cg l.polarizationXtop1_cg d.filed l.filed
estimates store model1

prais d.top1_cg_c l.top1_cg_c d.filpivdist_c l.filpivdist_c d.maxdist_c l.maxdist_c d.cpp_c l.cpp_c d.polarization_c l.polarization_c l.filpivdistXtop1_cg l.maxdistXtop1_cg l.cppXtop1_cg l.polarizationXtop1_cg d.nonpolfils l.nonpolfils
estimates store model2

estimates drop _all

*Indirect Effects of SQB via Congressional Policy Product

regress d.cpp_cent l.cpp_cent d.filpivdist_cent l.filpivdist_cent d.polarization_cent l.polarization_cent d.maxdist_cent l.maxdist_cent
estimates store model1

*Collinearity as a potential problem

regress d.top1_cg_c l.top1_cg_c d.filpivdist_c l.filpivdist_c l.filpivdistXtop1_cg 
estimates store model1

regress d.top1_cg_c l.top1_cg_c d.maxdist_c l.maxdist_c l.maxdistXtop1_cg
estimates store model2

regress d.top1_cg_c l.top1_cg_c d.cpp_c l.cpp_c l.cppXtop1_cg
estimates store model3

regress d.top1_cg_c l.top1_cg_c d.polarization_c l.polarization_c l.polarizationXtop1_cg
estimates store model4

estimates drop _all
